<?php

class Validator
{
    protected function __construct()
    {
    }

    private function __clone()
    {
    }

    //过滤特殊字符函数
    final public static function getFilterSpecialVarRules($strParam)
    {
            $regex = "/\/|\~|\!|\@|\#|\\$|\%|\^|\&|\*|\(|\)|\_|\+|\{|\}|\:|\<|\>|\?|\[|\]|\,|\.|\/|\;|\'|\`|\-|\=|\\\|\|/";
            return preg_replace($regex, "", $strParam);
    }

}

?>